<?php
$dis_id=7;
include("../../inc/conn.inc");
include("../islogin.php");
?>
<?php 
 $m_rs=mysql_query("select m_type,m_name,m_sex from member where id='".$_COOKIE['user_id']."'");
 $m_row=mysql_fetch_array($m_rs);
//免费会员禁止使用该功能
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心-三帝贸易网</title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="../js/left.js"></script>
<body>
<div id="mian">
<?php include("../inc/top.php");?>
<div class="top1"><span>您当前位置：<a href="../index.php" class="dh">会员助手</a> &gt;&gt; 信箱管理 &gt;&gt; 收信箱</span></div>
<div class="left">
<?php include("../inc/left.php");?>
</div>
<div class="right">
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
   <TR>
     <TD height="40" bgcolor="#EFF6FF" style="font-size:18px;font-weight:bold;padding-left:8px;">收信箱</TD>
   </TR>
</TABLE>
<br>
<?php
if($_GET[id]){
$rs=@mysql_query("select * from m_message where id='".$_GET['id']."' and  member_id='".$_COOKIE['user_id']."'");
$row=@mysql_fetch_array($rs);
if($row[0]){
@mysql_query("update m_message set is_read=1 where id='".$row['id']."'");
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#C1DCF5">
  <tr>
    <td height="35" colspan="2" align="left" bgcolor="#EFF6FF" style="padding:5px;"><a href="javascript:history.go(-1)">« 返回</a></td>
  </tr>
  <tr>
    <td width="149" height="30" align="right" bgcolor="#EFF6FF">主题：</td>
    <td width="573" bgcolor="#FFFFFF" style="padding-left:5px;"><a href="<?=$row[m_web]?>" target="_blank"><?=$row[m_subject]?></a></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#EFF6FF">留言内容：</td>
    <td bgcolor="#FFFFFF" style="padding:5px; line-height:22px;"><?=$row[m_content]?></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#EFF6FF">联系人：</td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row['m_name']?></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#EFF6FF">联系电话：</td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row['m_tel']?></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#EFF6FF">邮箱:</td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row['m_email']?></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#EFF6FF">QQ/MSN</td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row['m_qq']?></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#EFF6FF">联系地址</td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row[m_addr]?></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#EFF6FF">时间<strong>:</strong></td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row['add_time']?></td>
  </tr>
</table>
<?php }}?>
</div>
<div class="onl"></div>
<?php include("../inc/foot.php");?>
</div>
</body>
</html>

